<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .top {
            width: 100%;
            height: auto;
            padding: 10px 14px;
            box-sizing: border-box;
        }

        .top span {
            color: rgb(44, 106, 230);
            font-size: 16px;
            font-weight: bold;
            background: #fff;
            cursor: pointer;
            display: inline-block;
            padding: 4px 6px;

        }

        .top input {
            outline: none;
            border: none;
            width: 80%;
            background: #e4e1e1;
            border-radius: 12px;
            padding: 0 8px;
            height: 26px;
            font-size: 13px;
        }

        .hh {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 8px;
            background: rgb(210, 208, 208);
            margin: 3px 5px;
            opacity: 0.7;
            font-size: 14px;
        }

        .bot {
            width: 100%;
            height: 34px;
            margin-top: 10px;
        }

        .bot h3 {
            float: left;
            margin: 0 0 0 14px;
        }

        .bot button {
            float: right;
            border: none;
            border-radius: 6px;
            padding: 3px 6px;
            margin: 0 20px 0 0;
            font-size: 12px;
        }
    </style>
</head>

<body>
    <div id="box">
        <div class="top">
            <input type="text" name="" id="" placeholder="搜索商家，商品名称" v-model="value">
            <span @click="serch()">搜索</span>
        </div>
        <div class="bot">
            <h3>历史搜索</h3>
            <button @click="clean()">清除</button>
        </div>
        <span v-for="(item,index) in arr" class="hh">{{item}}</span>
        <div class="bot">
            <h3>搜索发现</h3>
        </div>
        <span v-for="(item,index) in seach" class="hh">{{item}}</span>
    </div>
</body>

</html>
<script src="./lib/vue2.js"></script>
<script src="3.搜索页.js"></script>